package 泛型;

import java.nio.channels.Pipe;

public class Point2<T> implements IMessage<T>{
    public <T> T fun1(T t){
        System.out.println(t);
        return t;
    }

    public static <T> T func(T t){
        return t;
    }

    @Override
    public void print(T t) {
        System.out.println(t);
    }

    @Override
    public void setMag(T i) {

    }

    @Override
    public T getMag() {
        return null;
    }

}

